load("//bazel:mongo_src_rules.bzl", "mongo_cc_library", "mongo_cc_unit_test")

package(default_visibility = ["//visibility:public"])

exports_files(
    glob([
        "*.h",
        "*.cpp",
    ]),
)

mongo_cc_library(
    name = "dotted_path_support",
    srcs = [
        "dotted_path_support.cpp",
    ],
    hdrs = [
        "//src/mongo/db/query/bson:dotted_path_support.h",
    ],
    header_deps = [
        "//src/mongo/db/exec/sbe:query_sbe_plan_stats",
    ],
    deps = [
        "//src/mongo:base",
    ],
)

mongo_cc_unit_test(
    name = "db_bson_test",
    srcs = [
        "dotted_path_support_test.cpp",
    ],
    tags = ["mongo_unittest_fourth_group"],
    deps = [
        ":dotted_path_support",
        "//src/mongo/db/exec/document_value",
    ],
)
